import { axios } from '@/utils/request'

export function queryInstance (parameter) {
  return axios({
    url: '/instance/query',
    method: 'post',
    data: parameter
  })
}

export function addInstance (parameter) {
  return axios({
    url: '/instance/add',
    method: 'post',
    data: parameter
  })
}

export function updateInstance (parameter) {
  return axios({
    url: '/instance/update',
    method: 'post',
    data: parameter
  })
}

export function removeInstance (parameter) {
  return axios({
    url: '/instance/remove',
    method: 'post',
    data: parameter
  })
}

export function listInsToBind (parameter) {
  return axios({
    url: '/instance/listInsToBind',
    method: 'post',
    data: parameter
  })
}

export function listInstance (parameter) {
  return axios({
    url: '/instance/listInstance',
    method: 'post',
    data: parameter
  })
}

export function validateInstanceName (parameter) {
  return axios({
    url: '/instance/validateInstanceName',
    method: 'post',
    data: parameter
  })
}
